/**
 * 作者: wgx
 * 日期: 2024-10-21 11:12:01
 * 备注: 武器配置表
 */
package com.motu.monstercity.server.game.commondata.partner;

import io.vertx.core.json.JsonObject;

public class WeaponMainModel {
    protected int weaponId; // weapon_id
    protected int quality; // 品质类型 (1N，2R，3SR，4SSR，5UR)
    protected int slotNum; // 武器初始槽位数量技能数量
    protected int talent; // 武器初始资质
    protected long upgradeItem; // 升级所需道具
    protected int upgradeAddTalent; // 升级增加的资质
    protected String recycleReward; // 回收基础奖励奖励 (返回升级和突破的消耗)
    protected int isCanRecycle; // 是否可以回收 (1-可以回收)
    protected int awakeType; // 觉醒的类型 (表weapon_awake的type字段)
    protected int combId; // 光环id

    public WeaponMainModel() {
    }

    public WeaponMainModel(JsonObject obj) {
        weaponId = obj.containsKey("weapon_id") ? obj.getInteger("weapon_id") : 0;
        quality = obj.containsKey("quality") ? obj.getInteger("quality") : 0;
        slotNum = obj.containsKey("slot_num") ? obj.getInteger("slot_num") : 0;
        talent = obj.containsKey("talent") ? obj.getInteger("talent") : 0;
        upgradeItem = obj.containsKey("upgrade_item") ? obj.getLong("upgrade_item") : 0;
        upgradeAddTalent = obj.containsKey("upgrade_add_talent") ? obj.getInteger("upgrade_add_talent") : 0;
        recycleReward = obj.containsKey("recycle_reward") ? obj.getString("recycle_reward") : "";
        isCanRecycle = obj.containsKey("is_can_recycle") ? obj.getInteger("is_can_recycle") : 0;
        awakeType = obj.containsKey("awake_type") ? obj.getInteger("awake_type") : 0;
        combId = obj.containsKey("comb_id") ? obj.getInteger("comb_id") : 0;
    }

    public int getWeaponId() {
        return weaponId;
    }

    public int getQuality() {
        return quality;
    }

    public int getSlotNum() {
        return slotNum;
    }

    public int getTalent() {
        return talent;
    }

    public long getUpgradeItem() {
        return upgradeItem;
    }

    public int getUpgradeAddTalent() {
        return upgradeAddTalent;
    }

    public String getRecycleReward() {
        return recycleReward;
    }

    public int getIsCanRecycle() {
        return isCanRecycle;
    }

    public int getAwakeType() {
        return awakeType;
    }

    public int getCombId() {
        return combId;
    }

}
